<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<?php
		global $current_controller;
	
		//http-equiv meta tags
		XHTML::Meta('http-equiv', 'Content-Type', 'text/html; charset=utf-8');
		XHTML::Meta('http-equiv', 'content-language', Language::getShortName());
		
		//named meta tags
		XHTML::Meta('name', 'robots', 'index,follow');
		XHTML::Meta('name', 'design', 'DQ Team');
		XHTML::Meta('name', 'powered by', 'SpherusFramework 2.10');
		XHTML::Meta('name', 'author', 'Perkin Anton [DeveloperMD]');
		
		//common css files
		XHTML::CSSBuffer(substr(THEMES.SEPARATOR.$current_controller->theme.SEPARATOR.'site', 1));
		XHTML::DisplayCSSBuffer();

		//common javascript files
		XHTML::JSBuffer(SITE_JS.SEPARATOR.'jquery-1.5.1.min');
		XHTML::JSBuffer(SITE_JS.SEPARATOR.'dq-ui-1.0');
		XHTML::JSBuffer(SITE_JS.SEPARATOR.'functions');
		
		//additional javascript files
		$current_controller->IncludeJavascriptFiles();
		XHTML::DisplayJSBuffer();
	   
		//jquery component
//    	jQuery::Initialize();
		
		//page title
		XHTML::Title(LANG_PROJECT_NAME.' :: '.strip_tags($current_controller->page_title));
	?>
	
	</head>
<body onload="<?php //echo $current_controller->onload; ?>updateClock(); setInterval('updateClock()', 1000 )">
		<table border="0" cellspacing="0" cellpadding="0" class="all">
		  	<!-- TOPLINE -->
		  	<?php
		  		$current_controller->IncludeThemeElement('site_top');
		  	?>
	  	  	<!-- /TOPLINE -->

		  	<!-- HEADER -->
		  	<?php
		  		if (!empty(HTTPContext::$session['client']))
		  		{
		  			$current_controller->IncludeThemeElement('site_header');
		  		}
		  		else 
		  		{
		  			$current_controller->IncludeThemeElement('site_header_public');
		  		}
		  	?>
	
			<!-- CONTENT  -->
			<tr class="bg_main">
				<td valign="top" class="bg_center_left"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></td> 
			  	<td valign="top" class="bg_center">
			    	<table border="0" cellspacing="0" cellpadding="0" width="100%">
			    		<tr>
			       		
					  	<!-- LEFT COLUMN -->
					  	<?php
					  		if ($current_controller->hasLeftColumn && (isset(HTTPContext::$session['client']))) 
					  		{
					  			$current_controller->IncludeThemeElement('site_left');
					  		}
					  		else 
					  		{
			
					  		}
					  	?>
		  	  			<!-- /LEFT COLUMN -->	
		  	  									  
			       		<td width="15"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></td>       
			       		<td valign="top" class="h400">
					        <!-- Info center -->
					    	<table border="0" cellspacing="0" cellpadding="0" class="all">
					        	<tr>
					           		<td width="5" height="5"><img src="/app/themes/default/img/c3_left_top.png" alt="" /></td>
					           		<td class="c3_bg_top"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></td>
					           		<td width="5"><img src="/app/themes/default/img/c3_right_top.png" alt="" /></td>
					         	</tr>
			         
					         	<tr>
						         	<td class="c3_bg_left"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></td>
						           	<td valign="top" class="c3_txt">
										<?php 
											echo $page_content;
										?>    
					           		</td>
					           		<td class="c3_bg_right"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></td>
					         	</tr>
			                  
					         	<tr>
						           <td width="5" height="5"><img src="/app/themes/default/img/c3_left_bottom.png" alt="" /></td>
						           <td class="c3_bg_bottom"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></td>
						           <td width="5"><img src="/app/themes/default/img/c3_right_bottom.png" alt="" /></td>
					         	</tr>				          
							</table>   
			        		<!-- end Info center -->
			       		</td>
			     	</tr>
			 	</table>  
			    <div class="pad5"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></div> 
			  </td>
			  <td valign="top" class="bg_center_right"><img src="<?php echo SITE_IMAGES; ?>vid.gif" alt="" /></td>
			</tr> 
			<!-- /CONTENT  -->	
	
		  	<!-- FOOTER -->
		  	<?php
		  		$current_controller->IncludeThemeElement('site_footer');
		  	?>
	  	  	<!-- /FOOTER -->
	  	  	
		</table>
		
		<?php
		  	$current_controller->IncludeThemeElement('site_contact');
			$current_controller->IncludeThemeElement('site_support');
		  	$current_controller->IncludeThemeElement('site_tour');
		?>
		
		<script>
			$('.btnCloseContainer').attr('style', 'float: right; ');	
		</script>
		
	</body>
</html>